<? if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<div class="menu fr content clearfix" id="rightLabel1" <? if(ACTION_NAME == 'talk' || ACTION_NAME == 'fav' || ACTION_NAME == 'me' || ACTION_NAME == 'album') { ?> style="margin-top:-60px;" <? } ?> <? if(ACTION_NAME == 'message' || ACTION_NAME == 'follow'|| ACTION_NAME == 'fans' || ACTION_NAME == 'friends' || ACTION_NAME == 'msgview') { ?> style=" position:relative;"<? } ?>>
<div class="profile">
<div class="p_a">
<div class="p_da"> <a href="<?php echo FU('u/talk',array("uid"=>$home_uid)); ?>" target="_blank"><img src="<?php echo avatar($home_uid,'b',1);?>" width="100" alt="<?=$home_user['user_name']?>" /></a></div>
</div>
<div class="name"><a href="<?php echo FU('u/talk',array("uid"=>$home_uid)); ?>" target="_blank" class="bc"><?=$home_user['user_name']?></a></div>
</div>
    <ul class="useratten cf">
    	<li><a href="<?php echo FU('u/follow',array("uid"=>$home_uid)); ?>" class="gray block usernumber"><?=$home_user['follows']?><br><span>关注</span></a></li>
        <li><a id="user_profile_fans_count" href="<?php echo FU('u/fans',array("uid"=>$home_uid)); ?>" class="block gray usernumber"><?=$home_user['fans']?><br><span>粉丝</span></a></li>
        <li><a class="gray block usernumber"><?=$home_user['collects']?><br><span>被喜欢</span></a></li>
    </ul>
    
    <? if($home_uid == $_FANWE['uid']) { ?>
<div class="concernbox cf">
<a href="<?php echo FU('settings/personal',array()); ?>" class="longbutton concern" target="_blank"><span>编辑档案</span></a>
</div>
    <div class="geticons">
<a href="<?php echo FU('settings/bind',array()); ?>"><span class="gray_mini_sina"></span></a>
<a href="<?php echo FU('settings/bind',array()); ?>"><span class="gray_mini_tx"></span></a>
<a href="<?php echo FU('settings/bind',array()); ?>"><span class="gray_mini_rr"></span></a>
<a href="<?php echo FU('settings/bind',array()); ?>"><span class="gray-miniqzone"></span></a>
</div>
    <? } else { ?>
    <div class="concernbox cf">
    	<? if(!$is_show_follow) { ?>
<a href="javascript:void(0)" class="concerned-ico" id="followBtn" onclick="$.User_Follow(<?=$home_uid?>,this,UMenuUpdateUserFollow);" style="margin-right:2px">
            	<span><em>已关注</em></span>
            </a>
        <? } else { ?>
        	<a href="javascript:void(0)" class="concern-ico" id="followBtn" onclick="$.User_Follow(<?=$home_uid?>,this,UMenuUpdateUserFollow);" style="margin-right:2px">
<span><em>关注</em></span>
     		</a>
        <? } ?>
</div>
    <? } ?>
    
    <div class="labelbox">
<h3 class="title">
<span class="label"><? if($_FANWE['uid'] == $home_uid) { ?>我<? } elseif($home_user['gender'] == 1) { ?>他<? } else { ?>她<? } ?>关注的人</span> <span class="number">(<em class="blue"><?=$home_user['follows']?></em>)</span>
</h3>
<ul class="bp cf">
        <? if(is_array($uids)) { foreach($uids as $uid => $key) { ?><li><a href="<?php echo FU('u/me',array("uid"=>$uid)); ?>"><img src="<?php echo avatar($uid,'b',1);?>" width="30" height="30" /> </a></li>
            <? } } ?>
</ul>
</div>
    <div class="labelbox">
<h3 class="title">
<span class="label">关注<? if($_FANWE['uid'] == $home_uid) { ?>我<? } elseif($home_user['gender'] == 1) { ?>他<? } else { ?>她<? } ?>的人</span> <span class="number">(<em class="blue"><?=$home_user['fans']?></em>)
</span>
</h3>
<ul class="bp cf"><? if(is_array($fav_ids)) { foreach($fav_ids as $uid) { ?><li><a href="<?php echo FU('u/me',array("uid"=>$uid['uid'])); ?>"><img src="<?php echo avatar($uid['uid'],'b',1);?>" width="30" height="30"  alt="<?=$uid['user_name']?>"/> </a></li>
            <? } } ?>
</ul>
</div>

</div>
<script type="text/javascript">

function UMenuUpdateUserFollow(obj,result)
{

if(result.status == 1)
{

$(obj).removeClass("concern-ico").addClass("concerned-ico").children("span").children("em").html("已关注");
}
else
{
$(obj).removeClass("concerned-ico").addClass("concern-ico").children("span").children("em").html("关注");
}
}
</script>